home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / Squeaky.swf / scripts / frame_131 / PlaceObject2_369_96 / CLIPACTIONRECORD onClipEvent(enterFrame).as < prev    next >
Encoding:
Text File  |  2005-08-04  |  1.3 KB  |  61 lines

  1. onClipEvent(enterFrame){
  2.    if(move == 0)
  3.    {
  4.       if(lock)
  5.       {
  6.          this._x += Xstep;
  7.          Ystep = 0;
  8.          Xstep = 0;
  9.          if(Key.isDown(37) and _root.alive == "yes")
  10.          {
  11.             if(this.rising == true)
  12.             {
  13.                Xstep = -15;
  14.             }
  15.             else
  16.             {
  17.                Xstep = -8;
  18.             }
  19.             Ystep = 0;
  20.             if(this.rising == false)
  21.             {
  22.                this.gotoAndStop("left");
  23.                this.mario.play();
  24.             }
  25.          }
  26.          else if(Key.isDown(39) and _root.alive == "yes")
  27.          {
  28.             if(this.rising == true)
  29.             {
  30.                Xstep = 15;
  31.             }
  32.             else
  33.             {
  34.                Xstep = 8;
  35.             }
  36.             Ystep = 0;
  37.             if(this.rising == false)
  38.             {
  39.                this.gotoAndStop("right");
  40.                this.mario.play();
  41.             }
  42.          }
  43.          else if(Key.isDown(40) and _root.alive == "yes")
  44.          {
  45.             if(_root.direction == 0)
  46.             {
  47.                this.gotoAndStop("sitleft");
  48.             }
  49.             else
  50.             {
  51.                this.gotoAndStop("sitright");
  52.             }
  53.          }
  54.          else
  55.          {
  56.             this.mario.gotoAndStop(1);
  57.          }
  58.       }
  59.    }
  60. }
  61.